<template>
    <div class="contact-container">
        <h2>联系我们</h2>
        <form class="contact-form">
            <input type="text" placeholder="您的姓名" required />
            <input type="email" placeholder="您的邮箱" required />
            <textarea placeholder="您的留言" required></textarea>
            <button type="submit">发送</button>
        </form>
    </div>
</template>

<script setup>
// 这里可以添加组件逻辑
</script>

<style scoped>
.contact-container {
    padding: 0 2rem 2rem 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 2rem;
    text-align: center;

    h2 {
        margin-bottom: 1rem;
        color: #333;
    }

    .contact-form {
        display: flex;
        flex-direction: column;
        align-items: center;

        input,
        textarea {
            width: 100%;
            max-width: 400px;
            margin-bottom: 1rem;
            padding: 0.5rem;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        button {
            padding: 0.5rem 1rem;
            background-color: #007bff;
            color: #fff;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            transition: background-color 0.3s;

            &:hover {
                background-color: #0056b3;
            }
        }
    }
}
</style>